Wt好样不能捕捉大写锁定键,∴要检测大写锁定状态就要像这位哥哥说的这样来绕个弯子咯。
http://dancewithnet.com/2007/04/16/detect-caps-lock/
亮点:
if (
((keyCode >= 65 && keyCode <= 90 ) && !isShift)
// Caps Lock 打开,且没有按住shift键
|| ((keyCode >= 97 && keyCode <= 122 ) && isShift)
// Caps Lock 打开,且按住shift键
){oTip.style.display = '';}
else{oTip.style.display = 'none';}
Wt好样不能捕捉大写锁定键,∴要检测大写锁定状态就要像这位哥哥说的这样来绕个弯子咯。
http://dancewithnet.com/2007/04/16/detect-caps-lock/
亮点:
if (
((keyCode >= 65 && keyCode <= 90 ) && !isShift)
// Caps Lock 打开,且没有按住shift键
|| ((keyCode >= 97 && keyCode <= 122 ) && isShift)
// Caps Lock 打开,且按住shift键
){oTip.style.display = '';}
else{oTip.style.display = 'none';}
HxLauncher: Launch Android applications by voice commands